<!DOCTYPE html>
<html xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
<title>提货表</title>
<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="form-group col-sm-2">
			<input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="用户名">
		</div>
		<div class="grid-btn">
			<a class="btn btn-primary" @click="review"><i class="fa fa-plus"></i>&nbsp;发货</a>
			<#if shiro.hasPermission("sys:outgoos:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="outgoos.name" readonly="readonly" placeholder="姓名"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">手机号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="outgoos.phone" readonly="readonly" placeholder="手机号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">备用手机号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="outgoos.phone2" readonly="readonly" placeholder="备用手机号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="outgoos.idcard" readonly="readonly" placeholder="身份证"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">详细地址</div>
			   	<div class="col-sm-10">
			      <input style="width: 1500px" type="text" class="form-control" v-model="address" readonly="readonly" placeholder="详细地址"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">邮编</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="outgoos.postcode" readonly="readonly" placeholder="邮编"/>
			    </div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">商品列表</div>
				<div class="col-sm-10">
					<!--<li v-for="one of list" >{{one.commodityname}}  {{ getSelect(one.selected) }}</li>-->
					<li v-for="one of list" >{{one.commodityname}} [{{ getSelect(one.selected) }}] 数量：{{one.commoditynumber}}</li>

				</div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="outgoos.createdate" readonly="readonly" placeholder="创建时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">备注</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="outgoos.remark" readonly="readonly" placeholder="备注"/>
			    </div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">物流类型</div>
				<div class="col-sm-10">
					<select v-model="outgoos.wuliutype" style="width: 200px">
						<option selected  value="">请选择</option>
						<option v-for="wuliu in wulius" v-bind:value="wuliu.no">{{wuliu.com}}</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">物流订单号</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="outgoos.wuliuorderno" placeholder="物流订单号"/>
				</div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="fahuo" value="发货"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/outgoos.js?_${.now?long}"></script>
</body>
</html>